package com.lili.collection.core.context.impl;

import com.lili.collection.core.context.Context;
import com.lili.collection.core.context.ExchangeStageContext;
import com.lili.collection.core.context.PipeContext;
import lombok.Getter;
import lombok.Setter;

/**
 * 通用管道上下文
 *
 * @author lili
 * @date 2023/3/9 0:04
 */
public class GenericPipeContext implements PipeContext {

    @Getter
    private Context context;

    @Getter
    @Setter
    private ExchangeStageContext exchangeStageContext;

    public GenericPipeContext(Context context) {
        this.context = context;
    }

    public GenericPipeContext(Context context, ExchangeStageContext exchangeStageContext) {
        this(context);
        this.exchangeStageContext = exchangeStageContext;
    }
}
